package com.springcloud.xxkfz.feign.fullback;

import com.springcloud.xxkfz.feign.AccountFeign;
import com.springcloud.xxkfz.vo.AccountVO;
import org.springframework.stereotype.Component;

import java.util.Collections;
import java.util.List;

/**
 * @author 公众号: SimpleMemory
 * @version 1.0.0
 * @ClassName AccountFeignFallBack.java
 * @Description 服务降级处理
 * @createTime 2023年01月30日 10:53:00
 */
@Component
public class AccountFeignFallBack implements AccountFeign {

	@Override
	public List<AccountVO> list() {
		System.out.println("list 降级处理！！！");
		return Collections.emptyList();
	}

	@Override
	public AccountVO getAccountById(String id) {
		System.out.println("getAccountById 降级处理！！！");
		return null;
	}
}
